Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jun 26, 2025

No description provided.

@vercel
Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 11:41pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 11:41pm

@codecov
Copy link

codecov bot commented Jun 26, 2025

Bundle Report

Changes will decrease total bundle size by 1.53kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.93MB -1.53kB (-0.01%) ⬇️
sentry-docs-client-array-push 9.8MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 873.24kB -0.0%
static/chunks/7750-*.js -3 bytes 415.85kB -0.0%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/chaQgmn3GQnQMTbKgAx1G/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/chaQgmn3GQnQMTbKgAx1G/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/12Y8BHyOUUDW5q8VJ9dn6/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/12Y8BHyOUUDW5q8VJ9dn6/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.64MB -0.0%
../instrumentation.js -3 bytes 973.36kB -0.0%
9523.js -3 bytes 949.31kB -0.0%
../app/[[...path]]/page.js -133 bytes 591.42kB -0.02%
../app/sitemap.xml/route.js -350 bytes 33.92kB -1.02%
../app/platform-redirect/page.js -133 bytes 31.48kB -0.42%
9567.js -901 bytes 19.45kB -4.43%

Files in 9567.js:

  • ./src/mdx.ts → Total Size: 21.03kB

App Routes Affected:

App Route Size Change Total Size Change (%)
/ -350 bytes 2.61MB -0.01%
/[[...path]] -133 bytes 3.14MB -0.0%
/platform-redirect -133 bytes 2.58MB -0.01%

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to reduce bundle size for Vercel functions by removing unnecessary logs and extending Next.js file tracing excludes.

  • Strip verbose upload logs and revise cache-miss warning in the markdown export script
  • Expand outputFileTracingExcludes in next.config.ts to omit source maps, cache directories, and various asset types from the server bundle

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scripts/generate-md-exports.mjs Removed redundant console log and updated warning text
next.config.ts Added additional file patterns to tracing excludes

@BYK
Copy link
Member Author

BYK commented Jun 26, 2025

checked /platform-redirect page but not other dynamic functions so we should get them checked

cursor[bot]

This comment was marked as outdated.

Co-authored-by: Copilot <[email protected]>
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

],
'/platform-redirect': ['**/*.gif', 'public/mdx-images/**/*', '*.pdf'],
'/platform-redirect': ['**/*.gif', 'public/mdx-images/**/*', '**/*.pdf'],
'\\[\\[\\.\\.\\.path\\]\\]': [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BYK - in my PR when I was looking at this I had some some indications from Claude that this wasn't actually a path - just want to double check if you if you see this one as correct? I refactored out of it in mine but if yours is good, than im good with it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specifically '\\[\\[\\.\\.\\.path\\]\\]'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's this one: https://docs.sentry.io/platform-redirect/?

It also broke on one of my earlier PRs 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh you mean the grep?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - looks like it isnt breaking anyhing now, if it comes up - we can revert and figure it out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\\[\\[\\.\\.\\.path\\]\\] maps to [[...path]], which is the catchall route for every docs content page 👍

@BYK BYK merged commit 0cbbbce into master Jun 27, 2025
15 checks passed
@BYK BYK deleted the byk/ref/function-size branch June 27, 2025 00:09
@codyde
Copy link
Contributor

codyde commented Jun 30, 2025 via email

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants